package com.itheima_9;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;

public class test_9_1 {
    public static void main(String[] args) throws ParseException {
        String name="1998-9-7 05:05:55 653";
        Date d=new Date();
        SimpleDateFormat sdf= new SimpleDateFormat("y-MM-dd hh:mm:ss SSS");
        Date parse = sdf.parse(name);
        long time = parse.getTime();
        Date d1= new Date();
        long time1 = d1.getTime();
        long l = (time1 - time)/(1000*60*60*24);
        System.out.println(l+"天");


    }
}
